package com.neusoft.ch7.staticdemo;

public class Teacher extends Person {
	// 非静态语句块
	{
		System.out.println("teacher的非静态语句块");
	}

	// person中的静态语句块
	static {
		System.out.println("teacher的静态语句块");
	}

	public Teacher() {
		super();
		System.out.println("子类teacher类的默认构造方法");
	}

	/**
	 * 饮食行为
	 */
	public static void eat() {
		System.out.println("teacher is eating...");
	}

	@Override
	public void sleep() {
		// TODO Auto-generated method stub
		super.sleep();
	}
	
	
}
